<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "images/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>BetOnlineVzla --Tu sitio de apuestas Online--</title>
<%= stylesheet_link_tag 'style'%>
<%= javascript_include_tag :defaults %>
<%= javascript_include_tag "prototype" %>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<table width="980" border="0" cellspacing="0" cellpadding="0" align="center" background="#" style="background-repeat:no-repeat;">
  <tr>
    <td width="980" height="49" valign="middle" background="/images/navlist2.jpg" style="background-repeat:no-repeat;">
    	<table width="980" border="0" cellspacing="0" cellpadding="0">
	




		<tr valign="top">
		<% if session[:user_id] %>
		  <td width="103" height="41" align="center" valign="middle" style="background-repeat:no-repeat;"> Bienvenido 
        		<%= User.find_by_id(session[:user_id]).login  %></td>
		<% else %>
			<td width="103" height="41" align="center" valign="middle" style="background-repeat:no-repeat;">
        	<%= link_to	"Login",  :controller => 'admin', :action => 'login', :class => "navbar" %></td>
		  <td width="106" height="41" align="center" valign="middle" style="background-repeat:no-repeat;"> 
		  	<%= link_to	"Registrate!" ,:controller => 'users', :action => 'new', :class => "navbar" %></td>
		<% end %>			
		  	  
	        <td width="192" align="right" class="head-2"><a href="http://twitter.com/BetOnlineVzla" style="text-decoration:none">Siguenos! =><img src="/images/twitter.png" width="40" height="40" align="middle" border="0"/></a></td>
	        <td width="580" valign="middle">
	        	<table width="580" border="0" cellpadding="0" cellspacing="0">
		            <tr>
		              <td width="272" height="30" align="center" valign="middle" class="head-2">Registrate en Noticias  </td>
		              <td width="210" height="30" valign="middle">
		                  <label>
		                  <input name="textfield" type="text" id="textfield" size="35" />
		                  </label>
		              </td>
		              <td width="98" height="30" align="center" valign="middle"><label>
		                <input name="button" type="image" id="button" value="Submit" src="/images/go.png" width="30" height="30" align="middle" />
		              </label></td>
		              
		            </tr>
	      	</table></td>
		</tr>	
    </table></td>
  </tr>
  
  <tr>
    <td width="980" height="216" valign="top" background="/images/cabecera.jpg" style="background-repeat:no-repeat;">
    <div class="title" style="padding-top:30px;padding-left:430px;">
    	<img src="/images/venezuela.png" width="40" height="20" /><strong>BetOnlineVzla</strong></div>
	<div class="slogan" style="padding-top:13px;padding-left:440px;"><strong>Tu sitio de apuestas en Internet</strong></div>
    </td>
  </tr>
  
  <tr>
    <td width="980" height="40" valign="top" background="/images/navlist.jpg" style="background-repeat:no-repeat;">
    	<table width="980" border="0" cellspacing="0" cellpadding="0">
      
    	<tr valign="top">
    		
	        <td width="102" height="41" align="center" valign="middle"  style="background-repeat:no-repeat;"> 
	        	<%= link_to "Inicio", "/home", :class => "navbar" %> </td>
	        <td width="106" height="41" align="center" valign="middle"  style="background-repeat:no-repeat;">
	        	<%= link_to	"Beisbol", "/categories/show/1", :class => "navbar" %></td> 
	        <td width="107" height="41" align="center" valign="middle"  style="background-repeat:no-repeat;">
	        	<%= link_to	"Futbol", "/categories/show/2", :class => "navbar" %></td>
	        <td width="106" height="41" align="center" valign="middle"  style="background-repeat:no-repeat;">
	        	<%= link_to	"Tenis", "/categories/show/3", :class => "navbar" %></a></td>
	        <td width="106" height="41" align="center" valign="middle"  style="background-repeat:no-repeat;">
	        	<%= link_to	"Basket", "/categories/show/4", :class => "navbar" %></td>
	        <td width="106" height="41" align="center" valign="middle"  style="background-repeat:no-repeat;">
	        	<%= link_to	"Boxeo", "/categories/show/5", :class => "navbar" %></td>
	        <td width="107" height="41" align="center" valign="middle"  style="background-repeat:no-repeat;">
	        	<%= link_to "Farandula", "/categories/show/6", :class => "navbar" %></td>
	        <td width="103" height="41" align="center" valign="middle"  style="background-repeat:no-repeat;">
	        	<%= link_to	"Otros", "/categories/", :class => "navbar" %></td>
	        <td width="137">&nbsp;</td>
      	</tr>
      
    	</table>
	</td>
  </tr>
  
  <tr>	
    <td width="100" height="49" valign="middle" background="/images/navlist2.jpg" style="background-repeat:no-repeat;">	
		<% if session[:user_id] %>
		<img src="/images/logout.png" width="30" height="30" align="middle"/>
		<%= link_to 'Cerrar Cesion', :controller => 'admin', :action => 'logout' %>
		&nbsp;&nbsp;
		&nbsp;&nbsp;
		<%= link_to	"Panel de Control" ,:controller => 'admin', :action => 'panel', :class => "navbar" %>
		&nbsp;&nbsp;
		&nbsp;&nbsp;
	

	<% if User.find(session[:user_id]).role == "admin" %>
  		<%= link_to	"Categorias", :controller => 'categories', :action => 'index', :class => "navbar" %>
		&nbsp;&nbsp;
		&nbsp;&nbsp;
		<%= link_to	"Eventos", :controller => 'events', :action => 'index', :class => "navbar" %>
		&nbsp;&nbsp;
		&nbsp;&nbsp;
		<%= link_to	"Participantes", :controller => 'participants', :action => 'index', :class => "navbar" %>
		&nbsp;&nbsp;
		&nbsp;&nbsp;
		<%= link_to	"Usuarios", :controller => 'users', :action => 'index', :class => "navbar" %>
		&nbsp;&nbsp;
		&nbsp;&nbsp;
		<%= link_to	"Apuestas" , :controller => 'bets', :class => "navbar" %>
		&nbsp;&nbsp;
		&nbsp;&nbsp;
		<%= link_to	"Pagos", :controller => 'paymethods', :class => "navbar" %>
		&nbsp;&nbsp;
		&nbsp;&nbsp;
		<%= link_to	"Finalizar Eventos", :controller => 'eventparticipants', :class => "navbar" %>
	<% end %>	
<% end %>
	</td>
  </tr>

  <tr>
    <td width="980" height="29" valign="top">
	<p>&nbsp;</p>
	</td>
  </tr>
  
  <tr>
    <td width="980" valign="top"><div style="padding-left:29px;">
      <table width="870" border="0" cellspacing="0" cellpadding="0">
          
      	<tr>
            <td width="631" valign="top"><%= yield %></td>
            <td width="239" valign="top" style="padding-top:21px;"></td>
          </tr>
          </table>
    </div></td>
  </tr>
  
	<tr>
		
		<td width="980" height="29" valign="top">
		<p>&nbsp;</p>
		</td>
	</tr>
	
	<tr>
    <td width="980" height="40" valign="top" background="/images/navlist.jpg" style="background-repeat:no-repeat;">
    	<table width="980" border="0" cellspacing="0" cellpadding="0">
      
    	    		<tr valign="top">
    		
	        <td width="102" height="41" align="center" valign="middle"  style="background-repeat:no-repeat;"> 
	        	<%= link_to "Inicio", "/home", :class => "navbar" %> </td>
	        <td width="106" height="41" align="center" valign="middle"  style="background-repeat:no-repeat;">
	        	<%= link_to	"Beisbol", "/categories/show/1", :class => "navbar" %></td> 
	        <td width="107" height="41" align="center" valign="middle"  style="background-repeat:no-repeat;">
	        	<%= link_to	"Futbol", "/categories/show/2", :class => "navbar" %></td>
	        <td width="106" height="41" align="center" valign="middle"  style="background-repeat:no-repeat;">
	        	<%= link_to	"Tenis", "/categories/show/3", :class => "navbar" %></a></td>
	        <td width="106" height="41" align="center" valign="middle"  style="background-repeat:no-repeat;">
	        	<%= link_to	"Basket", "/categories/show/4", :class => "navbar" %></td>
	        <td width="106" height="41" align="center" valign="middle"  style="background-repeat:no-repeat;">
	        	<%= link_to	"Boxeo", "/categories/show/5", :class => "navbar" %></td>
	        <td width="107" height="41" align="center" valign="middle"  style="background-repeat:no-repeat;">
	        	<%= link_to "Farandula", "/categories/show/6", :class => "navbar" %></td>
	        <td width="103" height="41" align="center" valign="middle"  style="background-repeat:no-repeat;">
	        	<%= link_to	"Otros", "/categories/", :class => "navbar" %></td>
	        <td width="137">&nbsp;</td>
      	</tr>
      
    	</table>
	</td>
  </tr> 
    
  <tr>
  	<td width="980" height="35" align="center" valign="bottom">
  		<a href="#" class="navbar2" target="_blank"><strong><u>Contacto</u></strong></a>&nbsp;&nbsp; 
    	<a href="#" class="navbar2" target="_blank"><strong><u>Ayuda</u></strong></a>
	</td>
  </tr>
  
</table>

<br/>
</body>
</html>
